package com.example.dayday.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.dayday.common.R;
import com.example.dayday.pojo.Specialized;
import com.example.dayday.service.SpecializedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Helen
 * @since 2022-09-07
 */
@RestController
@RequestMapping("/specialized")
public class SpecializedController {
    @Autowired
    private SpecializedService specializedService;

    @GetMapping("/list")
    public R getAll(){
        List<Specialized> list = specializedService.list(null);
        return R.ok().data("specializedList",list);
    }


}

